home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 4 / MacMania 4.toast / / Sound / SoundEffects 0.9.2 / SoundEffects Developer’s Kit / Interfaces / ModStringConversion.c < prev    next >
Text File  |  1994-11-10  |  233b  |  14 lines

  1. void UnsNumToString(unsigned long num, StringPtr str)
  2. {
  3.     unsigned long    temp;
  4.     
  5.     if ((signed long)num < 0L)
  6.     {
  7.         temp = num/10;
  8.         NumToString(temp, str);
  9.         str[0] += 1;
  10.         str[str[0]] = '0' + num%10;
  11.     }
  12.     else
  13.         NumToString(num, str);
  14. }